@extends('home.jicheng')
@section('content')
<div class="ebody">

    <div class="cart_box1" align="center">
    
      <div style="margin:20px auto;">
        <div class="cart_tx1"><strong>我的收藏商品 @if(session('info'))
                        <span id="info" class="text-red">{{session('info')}}</span>
                    @endif</strong></div>
  <div class="cart_box1">
    <div class="lista">
        <table cellpadding="0" cellspacing="0">
         <thead>
                    <tr class="tx">
                        <td class="cellone" colspan="2" align="center" style="text-align:center">商品名</td>
                        <td width="87" >价格</td>
                        <td width="67">操作</td>
                    </tr>
         </thead>
         <tbody>
               @foreach($data as $row)
                <tr class="cartli1">
                    <td width="102" valign="middle">
                      <img style="width:100px;height:100px;" src="{{ asset( $row -> gid -> gpic)}}" alt="">
                    </td>
                    <td width="363"  class="txtx">{{$row -> gid -> gname}}</td>
                    <td>￥{{$row -> gid -> gpirce}}元</td>


                    <td>
                    <span class="bluetxt">
                    <a href="{{url('home/cart/add/')}}/{{$row -> gid -> gid}}">加入购物车</a>
                    <a  href='{{url("home/user/delsc/")}}/{{$row -> gid -> gid }}' class="moreintro" style="text-decoration:underline">删除</a>

                    </span>

                    </td>
                </tr>
                @endforeach
            </tbody>
            <!-- //修改数量 --> 

    </table>




 <!-- </form>        -->



</div>

</div>

</div>

@endsection('content')